package com.example.rlw.mvpplugintest.prompt;

import android.content.Context;
import android.view.View;
import android.widget.Toast;
import com.kingja.loadsir.callback.Callback;
import com.example.rlw.mvpplugintest.R;


/**
 * 网络超时回调的布局
 */
public class TimeoutCallback extends Callback {

    @Override
    protected int onCreateView() {
        return R.layout.layout_timeout;
    }

    @Override
    protected boolean onReloadEvent(Context context, View view) {
        Toast.makeText(context.getApplicationContext(), "请检查网络重试!", Toast.LENGTH_SHORT).show();
        return false;
    }
}
